package com.ruoyi.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName wlwsys_device
 */
@TableName(value ="wlwsys_device")
@Data
public class WlwsysDevice implements Serializable {
    /**
     * 设备id
     */
    @TableId
    private String deviceId;

    /**
     * 设备名称
     */
    private String deviceName;

    /**
     * 设备说明
     */
    private String deviceIntroduce;

    /**
     * 所属项目
     */
    private String projectId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 是否删除
     */
    private boolean isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

//    @Override
//    public boolean equals(Object that) {
//        if (this == that) {
//            return true;
//        }
//        if (that == null) {
//            return false;
//        }
//        if (getClass() != that.getClass()) {
//            return false;
//        }
//        WlwsysDevice other = (WlwsysDevice) that;
//        return (this.getDeviceId() == null ? other.getDeviceId() == null : this.getDeviceId().equals(other.getDeviceId()))
//            && (this.getDeviceName() == null ? other.getDeviceName() == null : this.getDeviceName().equals(other.getDeviceName()))
//            && (this.getDeviceIntroduce() == null ? other.getDeviceIntroduce() == null : this.getDeviceIntroduce().equals(other.getDeviceIntroduce()))
//            && (this.getProjectId() == null ? other.getProjectId() == null : this.getProjectId().equals(other.getProjectId()))
//            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
//            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
//            && (Arrays.equals(this.getIsDelete(), other.getIsDelete()));
//    }
//
//    @Override
//    public int hashCode() {
//        final int prime = 31;
//        int result = 1;
//        result = prime * result + ((getDeviceId() == null) ? 0 : getDeviceId().hashCode());
//        result = prime * result + ((getDeviceName() == null) ? 0 : getDeviceName().hashCode());
//        result = prime * result + ((getDeviceIntroduce() == null) ? 0 : getDeviceIntroduce().hashCode());
//        result = prime * result + ((getProjectId() == null) ? 0 : getProjectId().hashCode());
//        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
//        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
//        result = prime * result + (Arrays.hashCode(getIsDelete()));
//        return result;
//    }
//
//    @Override
//    public String toString() {
//        StringBuilder sb = new StringBuilder();
//        sb.append(getClass().getSimpleName());
//        sb.append(" [");
//        sb.append("Hash = ").append(hashCode());
//        sb.append(", deviceId=").append(deviceId);
//        sb.append(", deviceName=").append(deviceName);
//        sb.append(", deviceIntroduce=").append(deviceIntroduce);
//        sb.append(", projectId=").append(projectId);
//        sb.append(", createTime=").append(createTime);
//        sb.append(", updateTime=").append(updateTime);
//        sb.append(", isDelete=").append(isDelete);
//        sb.append(", serialVersionUID=").append(serialVersionUID);
//        sb.append("]");
//        return sb.toString();
//    }
}